package com.evil.application.pojo.bo.application.form.control.option;

import cn.hutool.core.bean.BeanUtil;
import com.evil.application.pojo.entity.FormControlOption;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * @author liyang
 * @date 2022-08-08 00:00
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class FormControlOptionBO extends FormControlOption {

    /**
     * 子级
     */
    private List<FormControlOptionBO> child = new ArrayList<>();

    public FormControlOptionBO(FormControlOption formControlOption) {
        BeanUtil.copyProperties(formControlOption, this);
    }
}
